<?php
namespace App\Http\Controllers\Api\V2;
use DB;
use App\Common\ApiData;

class CountryController{

    /*
    * 获得所有国家列表
    * */
    public function get_countries(){
        $countrys   = DB::table('countrys')
            ->where('is_show',1)
            ->select('country_china_name','country_num_code')
            ->get();
        $apiData    = new ApiData();
        return $apiData->set_data('countrys',$countrys)->send('200','ok');
    }

}